home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / m / hp9000s300.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  5.0 KB  |  182 lines

  1. /* machine description file for hp9000 series 200 or 300 on either HPUX or BSD.
  2.    Copyright (C) 1985, 1994 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: FSF 19.29. */
  21.  
  22. /* The following line tells the configuration script what sort of 
  23.    operating system this machine is likely to run.
  24.    USUAL-OPSYS="note"
  25.  
  26. NOTE-START
  27. HP 9000 series 200 or 300 (-machine=hp9000s300)
  28.  
  29.   These machines are 68000-series CPUs running HP-UX
  30.   (a derivative of sysV with some BSD features) or BSD 4.3 ported by Utah.
  31.  
  32.   If you're running HP-UX, specify `-opsystem=hpux'.
  33.   If you're running BSD, specify `-opsystem=bsd4-3'.
  34. NOTE-END */
  35.  
  36. /* Define this symbol if you are running a version of HP-UX
  37.    which predates version 6.01 */
  38.  
  39. /* #define HPUX_5 */
  40.  
  41. /* Define WORD_MACHINE if addresses and such have
  42.  * to be corrected before they can be used as byte counts.  */
  43.  
  44. /* #define WORD_MACHINE */
  45.  
  46. /* Now define a symbol for the cpu type, if your compiler
  47.    does not define it automatically.  */
  48.  
  49. #ifndef hp9000s300
  50. #define hp9000s300
  51. #endif
  52.  
  53. /* Use type int rather than a union, to represent Lisp_Object */
  54. /* This is desirable for most machines.  */
  55.  
  56. #define NO_UNION_TYPE
  57.  
  58. /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  59.    the bit field into an int.  In other words, if bit fields
  60.    are always unsigned.
  61.  
  62.    If you use NO_UNION_TYPE, this flag does not matter.  */
  63.  
  64. #define EXPLICIT_SIGN_EXTEND
  65.  
  66. /* Define CANNOT_DUMP on machines where unexec does not work.
  67.    Then the function dump-emacs will not be defined
  68.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  69.  
  70. /* #define CANNOT_DUMP */
  71.  
  72. /* Define VIRT_ADDR_VARIES if the virtual addresses of
  73.    pure and impure space as loaded can vary, and even their
  74.    relative order cannot be relied on.
  75.  
  76.    Otherwise Emacs assumes that text space precedes data space,
  77.    numerically.  */
  78.  
  79. /* #define VIRT_ADDR_VARIES */
  80.  
  81. /* XEmacs: Richard Cognot <cognot@ensg.u-nancy.fr> says we need this for
  82.    HPUX; but eeide@asylum.cs.utah.edu (Eric Eide) says it loses on BSD. */
  83. #ifndef BSD
  84. # define UNEXEC unexhp9k3.o
  85. #endif
  86.  
  87.  
  88. /* For University of Utah 4.3bsd implementation on HP300s.
  89.    The #ifndef __GNUC__ definitions are required for the "standard" cc,
  90.    a very old, brain-dead version of PCC. */
  91.  
  92. #ifdef BSD4_3
  93.  
  94. /* Tell crt0.c that this is an ordinary 68020.  */
  95. #undef hp9000s300
  96. #define m68000
  97.  
  98. #define CRT0_DUMMIES        bogus_a6,
  99.  
  100. #define HAVE_ALLOCA
  101.  
  102. #ifndef __GNUC__
  103. #define LIBS_DEBUG        /* don't have -lg that works */
  104. #define C_DEBUG_SWITCH        /* don't support -g */
  105. #endif
  106.  
  107. #undef LOAD_AVE_TYPE
  108. #undef LOAD_AVE_CVT
  109. #define LOAD_AVE_TYPE long
  110. #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0))
  111.  
  112. #endif /* BSD4_3 */
  113.  
  114. #ifndef BSD4_3
  115. /* The following definitions are for HPUX only.  */
  116.  
  117. /* The symbol in the kernel where the load average is found
  118.    is named _avenrun on this machine.  */
  119.  
  120. #define LDAV_SYMBOL "_avenrun"
  121.  
  122. /* Data type of load average, as read out of kmem.  */
  123.  
  124. #define LOAD_AVE_TYPE double
  125.  
  126. /* Convert that into an integer that is 100 for a load average of 1.0  */
  127.  
  128. #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0))
  129.  
  130. #ifdef __GNUC__
  131. #define HAVE_ALLOCA
  132. #endif
  133.  
  134. /* This library is needed with -g, on the 200/300 only.  */
  135.  
  136. #if !defined(__GNUC__) || defined(__HPUX_ASM__)
  137. #define LIBS_DEBUG /usr/lib/end.o
  138. #endif
  139.  
  140. /* Need a TEXT_START.  On the HP9000/s300 that is 0.  */
  141. #ifdef __GNUC__
  142. #define TEXT_START   0
  143. #endif
  144.  
  145. /* In older versions of hpux, for unknown reasons, S_IFLNK is defined
  146.    even though symbolic links do not exist.
  147.    Make sure our conditionals based on S_IFLNK are not confused.
  148.  
  149.    Here we assume that stat.h is included before config.h
  150.    so that we can override it here.
  151.  
  152.    Version 6 of HP-UX has symbolic links.  */
  153.  
  154. #ifdef HPUX_5
  155. #undef S_IFLNK
  156. #endif
  157.  
  158. /* Define C_SWITCH_MACHINE to be +X if you want the s200/300
  159.  * Emacs to run on both 68010 and 68020 based hp-ux's.
  160.  *
  161.  * Define OLD_HP_ASSEMBLER if you have an ancient assembler
  162.  *
  163.  * Define HPUX_68010 if you are using the new assembler but
  164.  * compiling for a s200 (upgraded) or s310.  68010 based
  165.  * processor without 68881.
  166.  */
  167.  
  168. /* These switches increase the size of some internal C compiler tables.
  169.    They are required for compiling the X11 interface files. */
  170.  
  171. #ifndef HPUX_5
  172. #ifndef __GNUC__
  173. #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000
  174. #endif
  175. #endif
  176.  
  177. /* Define NEED_BSDTTY if you have such. */
  178.  
  179. #define NEED_BSDTTY
  180.  
  181. #endif /* not BSD4_3 */
  182.